package com.company.代理模式.impl;

import com.company.代理模式.Inviter;

public class Assistant implements Inviter {
    private Inviter target;

    public Assistant(Inviter target) {
        this.target = target;
    }

    public void setTarget(Inviter target) {
        this.target = target;
    }



    @Override
    public void invite() {
        System.out.println("老板让我通知大家");
        target.invite();
        System.out.println("大家别拘束");
    }
}
